package com.xiaoc.bulldozer.common.dao;

import java.util.List;
import com.xiaoc.bulldozer.common.dto.AwardTimeRuleQueryDto;
import com.xiaoc.bulldozer.common.model.AwardTimeRule;

/**
 * AwardTimeRule Mapper 接口
 *
 * @author Danfo Yam
 * 
 * @date 2018-12-24 10:00:41
 */
public interface AwardTimeRuleMapper {

    /**
     * 根据条件查询AwardTimeRule数量
     
     * @param AwardTimeRuleQueryDto
     *
     * @return 满足查询条件的记录数量
     */
    public Integer getAwardTimeRuleCountByCondition(AwardTimeRuleQueryDto awardTimeRuleQueryDto);
    
    /**
     * 根据条件分页查询AwardTimeRule列表
     *
     * @param AwardTimeRuleQueryDto
     *
     * @return 满足查询条件的AwardTimeRule列表
     */
    public List<AwardTimeRule> getAwardTimeRuleListByCondition(AwardTimeRuleQueryDto awardTimeRuleQueryDto);
    
    /**
     * 根据Id获取AwardTimeRule
     * 
     * @param id
     *
     * @return AwardTimeRule对象
     */
    public AwardTimeRule getAwardTimeRuleById(Integer id);

    /**
     * 获取所有AwardTimeRule列表
     * 
     * @return AwardTimeRule列表
     */
    public List<AwardTimeRule> getAllAwardTimeRuleList();

    /**
     * 新增AwardTimeRule
     * 
     * @param awardTimeRule
     *
     * @return void
     */
    public void save(AwardTimeRule awardTimeRule);

    /**
     * 更新AwardTimeRule
     * 
     * @param awardTimeRule
     *
     * @return void
     */
    public void update(AwardTimeRule awardTimeRule);

    /**
     * 根据Id删除AwardTimeRule
     * 
     * @param id
     *
     * @return void
     */
    public void deleteById(Integer id);


    /**
     * 根据当前时间查询 AwardTimeRule
     * @param currentTime
     * @return
     */
    public AwardTimeRule getAwardTimeRuleByCurrentTime(String currentTime);

    public AwardTimeRule getAwardTimeRuleByCurrentTime1(String currentTime);


    /**
     * 根据当前时间 获取下轮红包时间规则
     * @param currentTime
     * @return
     */
    public AwardTimeRule getNextAwardTimeRuleByCurrentTime(String currentTime);
}
